package com.liang.common;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author liangben
 * @date 2022/4/13 10:04:40
 */
@Component
@Aspect
public class ResultAspect {

    @Pointcut("@annotation(com.liang.common.AutoResult)")
    public void resultPointCut() {
    }

    @Around("resultPointCut()")
    public Object around(ProceedingJoinPoint point) throws Throwable, Exception{
        //TODO
        return point.proceed();
    }
}
